// import App from '../App'

const home = () => import('../pages/home/Home')
const login = () => import('../pages/login/Login')
const profile = () => import('../pages/profile/Profile')
const city = () => import('../pages/city/City')
const msite = () => import('../pages/msite/Msite')
const shop = () => import('../pages/shop/Shop')

// 按需引入组件
const routes = [
  {
    path: '',
    redirect: '/home'
  },
  {
    path: '/home',
    name: 'home',
    component: home
  },
  {
    path: '/login',
    name: 'login',
    component: login
  },
  {
    path: '/profile',
    name: 'profile',
    component: profile
  },
  {
    path: '/city/:city_id',
    name: 'city',
    component: city
  },
  {
    path: '/msite',
    name: 'msite',
    component: msite,
    meta: {
      keepAlive: true
    }
  },
  {
    path: '/shop',
    name: 'shop',
    component: shop,

  }
]



export default routes